package com.zy.eurekaclient;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
public class MyController {     //模拟一个功能,返回一个json

    @RequestMapping(value = "/client",produces = "application/json;charset=utf-8")
    public List<String> getMesg(){

        ArrayList<String> arr=new ArrayList<>();
        arr.add("aa");
        arr.add("bb");
        arr.add("cc");
        return arr;

    }
}
